home *** CD-ROM | disk | FTP | other *** search
/ GEGA 010 / GEGA010.iso / Mods / Doom 3 / BloodyScreme / bloodymess.pk4 / def / weapon_plasmagun.def < prev    next >
Text File  |  2004-08-04  |  12KB  |  357 lines

  1. /***********************************************************************
  2.  
  3.     weapon_plasmagun.def
  4.  
  5. ***********************************************************************/
  6.  
  7. export fred {
  8.     // view model plasmagun
  9.     options -prefix PLASMA_ -keep barrel eject flash guilight newguithing ventlight -parent ventlight pgbody2 -parent barrel pgbody2 -parent eject pgbody2 -parent gui pgscreen -parent newguithing pgupmon -parent guilight pgupmon -parent fx pgbody2 -parent nut pgbody2 -rename origin blah -sourcedir models/weapons/plasmagun/cycles -destdir models/md5/weapons/plasmagun_view
  10.     mesh    idle.mb -dest viewplasmagun
  11.     anim    raise.mb
  12.     anim    raise2.mb -range 1 90 -dest raise2up
  13.     anim    raise2.mb -range 90 90 -dest raise2idle
  14.     anim    idle.mb
  15.     anim    fire1.mb
  16.     anim    fire2.mb
  17.     anim    reload.mb
  18.     anim    lower.mb
  19.     
  20.     // world model plasmagun
  21.     options -ignorescale -prefix PLAYER_pg -keep ATTACHER barrel eject flash guilight -parent barrel body2 -parent eject body2 -parent flash body2 -parent eject body2 -parent guilight body2 -rename ATTACHER origin -clearorigin 
  22.     addoptions -skipmesh PLAYER_plasma_innerscopebot_mesh1
  23.     addoptions -skipmesh PLAYER_plasma_outerscopebot_mesh1
  24.     addoptions -skipmesh PLAYER_plasma_innerscopetop_mesh1
  25.     addoptions -skipmesh PLAYER_plasma_outerscopetop_mesh1
  26.     addoptions -skipmesh PLAYER_plasma_innerflap1_mesh1
  27.     addoptions -skipmesh PLAYER_plasma_outerflap1_mesh1
  28.     addoptions -skipmesh PLAYER_plasma_bolt_mesh1
  29.     addoptions -skipmesh PLAYER_plasma_screen_mesh1
  30.     addoptions -skipmesh PLAYER_plasma_body_mesh1
  31.     addoptions -skipmesh PLAYER_plasma_handle_mesh1
  32.     addoptions -skipmesh PLAYER_plasma_outerflap2_mesh1
  33.     addoptions -skipmesh PLAYER_plasma_innerflap2_mesh4
  34.     addoptions -skipmesh PLAYER_plasma_uppermon_mesh4
  35.  
  36.     mesh    models/characters/player/mocap/plasmagun_idle.mb -dest models/md5/weapons/plasmagun_world/worldplasmagun
  37.     anim    models/characters/player/mocap/plasmagun_idle.mb -dest models/md5/weapons/plasmagun_world/plasmagun_idle
  38. }
  39.  
  40. entityDef weapon_plasmagun {
  41.     "editor_color"                ".3 .3 1"
  42.     "editor_mins"                "-16 -16 0"
  43.     "editor_maxs"                "16 16 32"
  44.     "editor_usage"                "Plasma Gun"
  45.     "editor_rotatable"        "1"
  46.  
  47.     "spawnclass"                "idItem"
  48.     "size"                        "32 32 32"
  49.     "model"                     "models/weapons/plasmagun/plasmagun_world.lwo"
  50.     "model_view"                "viewmodel_plasmagun"
  51.     "model_world"                 "worldmodel_plasmagun"
  52.     "joint_attach"                "pgATTACHER"
  53.     "def_dropItem"                "moveable_item_plasmagun"
  54.  
  55.     "inv_name"                    "Plasma Gun"
  56.     "inv_weapon"                "weapon_plasmagun"
  57.     "inv_ammo_cells"            "50"
  58.     "inv_item"                    "5"
  59.     "icon"                        "guis/assets/hud/wpn_5"
  60.  
  61.     "gui"                        "guis/weapons/plasmagun.gui"
  62.     "mtr_guiLightShader"        "lights/viewWeaponGuiLight"
  63.  
  64.     "weapon_scriptobject"        "weapon_plasmagun"
  65.     "def_projectile"            "projectile_plasmablast"
  66.     "muzzle_launch"                "1"
  67.     "ammoType"                    "ammo_cells"
  68.     "ammoRequired"                "1"
  69.     "clipSize"                    "50"
  70.     "lowAmmo"                    "10"
  71.     "mtr_flashShader"            "muzzleflash"
  72.     "flashColor"                "0.18 0.70 0.82"
  73.     "flashRadius"                "360"
  74.     "silent_fire"                "0"
  75.     "smoke_muzzle"                "plasmamuzzlesmoke.prt"
  76.     "gib"                "1"
  77.  
  78.     "weaponAngleOffsetAverages" "15"
  79.     "weaponAngleOffsetScale"     ".40"
  80.     "weaponAngleOffsetMax"        "20"
  81.     "weaponOffsetTime"            "500"
  82.     "weaponOffsetScale"            "0.005"
  83.  
  84.     "hide_time"                    "0.3"                                // time to hide weapon when talking to npcs or looking at guis
  85.     "hide_distance"                "-15"                                // distance to offset weapon when talking to npcs or looking at guis
  86.  
  87.     "nozzleFx"                    "1"
  88.     "nozzleFxFade"                "100"
  89.     "nozzleGlowColor"            "0.18 0.70 0.82"
  90.     "nozzleGlowOffset"            "-6 2 1"
  91.     "nozzleGlowRadius"            "160"
  92.     "mtr_nozzleGlowShader"        "lights/plasmaglow"
  93.     
  94.     //"snd_acquire"                "sound_weapon_acquire"
  95.     "snd_acquire"                "player_plasma_raise"
  96.     "snd_respawn"                "sound_weapon_respawn"
  97.     "snd_hum"                    "player_plasma_idle"
  98.     "skin_invisible"            "skins/plasma_invis"
  99.     
  100.     "spread"                    "0"
  101. }
  102.  
  103. entityDef moveable_item_plasmagun {
  104.     "inherit"                    "weapon_plasmagun"
  105.     "spawnclass"                "idMoveableItem"
  106.     "density"                    "0.05"
  107.     "friction"                    "0.2"
  108.     "bouncyness"                "0"
  109. }
  110.  
  111. model worldmodel_plasmagun {
  112.     mesh                        models/md5/weapons/plasmagun_world/worldplasmagun.md5mesh
  113.     //offset                    ( 1 2 1 )
  114.  
  115.     anim raise                    models/md5/weapons/plasmagun_world/plasmagun_idle.md5anim    
  116.     anim idle                     models/md5/weapons/plasmagun_world/plasmagun_idle.md5anim
  117.     anim aim                    models/md5/weapons/plasmagun_world/plasmagun_idle.md5anim
  118.     anim fire1                     models/md5/weapons/plasmagun_world/plasmagun_idle.md5anim {
  119.         frame 1                    sound_weapon plasma_fire
  120.     }
  121.     anim reload                    models/md5/weapons/plasmagun_world/plasmagun_idle.md5anim {
  122.         frame 1                    sound_weapon plasma_reload
  123.     }
  124.     anim noammo                    models/md5/weapons/plasmagun_world/plasmagun_idle.md5anim {
  125.         frame 1                    sound_weapon plasma_dryfire
  126.     }
  127.     anim putaway                models/md5/weapons/plasmagun_world/plasmagun_idle.md5anim
  128. }
  129.  
  130. model viewmodel_plasmagun {
  131.     mesh                         models/md5/weapons/plasmagun_view/viewplasmagun.md5mesh
  132.     anim raise                    models/md5/weapons/plasmagun_view/raise.md5anim {
  133.         frame    1                sound_weapon player_plasma_raise
  134.     }
  135.     anim guiup                    models/md5/weapons/plasmagun_view/raise2up.md5anim
  136.     anim guiidle                models/md5/weapons/plasmagun_view/raise2idle.md5anim
  137.     anim idle                     models/md5/weapons/plasmagun_view/idle.md5anim
  138.     anim fire1                     models/md5/weapons/plasmagun_view/fire1.md5anim {
  139.         frame 1                    sound_weapon plasma_fire
  140.     }
  141.     anim fire2                     models/md5/weapons/plasmagun_view/fire2.md5anim {
  142.         frame 1                    sound_weapon plasma_fire    
  143.     }
  144.     anim putaway                models/md5/weapons/plasmagun_view/lower.md5anim
  145.     anim reload                    models/md5/weapons/plasmagun_view/reload.md5anim {
  146.         frame 1                    sound_weapon plasma_reload
  147.     }
  148.     anim noammo                    models/md5/weapons/plasmagun_view/fire1.md5anim {
  149.         frame 1                    sound_weapon plasma_dryfire
  150.     }
  151. }
  152.  
  153. entityDef    damage_plasmablast {
  154.     "damage"                    "16"
  155.     "smoke_wound_flesh"            "bloodwound.prt"
  156.     "gib"                        "1"
  157.     
  158. }
  159.  
  160. entityDef projectile_plasmablast {
  161.     "spawnclass"                "idProjectile"
  162.     "mins"                        "-6 -6 -4"
  163.     "maxs"                        "6 6 4"
  164.     "cone"                        "3"
  165.     "model"                     "models/particles/plasma_bolt/plasma_bolt.lwo"
  166.  
  167.     "def_damage"                "damage_plasmablast"
  168.  
  169.     "launchFromBarrel"            "1"
  170.     "health"                    "0"                    // amount of damage projectile can take if damaged (0 means it can't be destroyed)
  171.     "velocity"                    "700 0 0"            // how fast the projectile leaves the gun (or distance if fuse is 0)
  172.     "random_shader_spin"        "1"                    // sets shader parm 5 which if appropriate the projectile shader will use this as an alternating spin
  173.     "angular_velocity"            "0 0 0"                // how the projectile is rotating when it leaves the gun
  174.     "thrust"                    "0"                    // the rate of acceleration (always in the direction of the projectiles model)
  175.     "thrust_start"                "0"                    // when to start accelerating
  176.     "thrust_end"                "0"                    // when to stop accelerating
  177.     "linear_friction"            "0"                    // "air" friction
  178.     "angular_friction"            "0"
  179.     "contact_friction"            "0"
  180.     "bounce"                    "0.6"                // how much speed a projectile retains when it bounces off of objects (coefficient of restitution).  0 means no bounce.
  181.     "mass"                        "50"
  182.     "push"                        "4000"                // additional impulse when projectile collides
  183.     "gravity"                    "0"                    // how much gravity affects the trajectory.  gravity direction is same as the entity that fired it.
  184.     "fuse"                        "10"                // how long before the projectile is removed or self-detonates.  Use 0 for beam weapons (velocity == distance).
  185.  
  186.     "detonate_on_fuse"            "0"                    // whether projectile should detonate when it's fuse runs out
  187.     "detonate_on_death"            "1"                    // whether projectile should detonate when it's "killed" (health runs out)
  188.     "detonate_on_world"            "1"                    // whether projectile should detonate when it hits an obstacle
  189.     "detonate_on_actor"            "1"                    // whether projectile should detonate when it hits a character in the game
  190.  
  191.     "impact_damage_effect"        "1"                    // whether projectile causes blood splats from characters that bleed
  192.     "impact_gib"                "1"                    // whether projectile can gib a character or not (for example: bullets don't gib, but rockets do)
  193.  
  194.     "mtr_detonate"                "textures/decals/ballburn_plasma"
  195.     "decal_size"                "70" 
  196.  
  197.     "smoke_fly"                    "plasmatrail.prt"    // particle effect while in the air
  198.     "smoke_detonate"            ""                    // particle effect when detonates
  199.     "smoke_residue"                ""                    // particle effect while in the air
  200.     "smoke_bounce"                ""                    // particle effect when bounces
  201.     "smoke_fuse"                ""                    // particle effect when removed from fuse expiring
  202.  
  203.     "model_detonate"            "plasmaimpact.prt"
  204.  
  205. //    "mtr_light_shader"            "muzzleflash"
  206. //    "light_color"                "0 0 0.8"
  207. //    "light_radius"                "160"
  208. //    "light_offset"                "-8 0 0"
  209.  
  210. //    "mtr_explode_light_shader"    "muzzleflash"
  211. //    "explode_light_color"        "0 0 1"
  212. //    "explode_light_radius"        "240"
  213. //    "explode_light_fadetime"    "0.25"
  214.  
  215.     "snd_fly"                    "plasma_flight"                    // sound effect while in the air
  216.     "snd_explode"                "plasma_impact"
  217. }
  218.  
  219. /*
  220.     Generated by the Particle Editor.
  221.     To use the particle editor, launch the game and type 'editParticles' on the console.
  222. */
  223. particle plasmaimpact {
  224.     depthHack    10
  225.     {
  226.         count                1
  227.         material            textures/particles/boomboom2
  228.         time                1.400
  229.         cycles                1.000
  230.         bunching            0.050
  231.         distribution        sphere 10.000 10.000 0.000 
  232.         direction            cone 0.000 
  233.         orientation            view 
  234.         speed                 "0.000" 
  235.         size                 "10.000"  to "43.000"
  236.         aspect                 "1.000" 
  237.         randomDistribution                1
  238.         boundsExpansion                0.000
  239.         fadeIn                0.100
  240.         fadeOut                0.750
  241.         fadeIndex                0.000
  242.         color                 0.000 0.360 0.490 1.000
  243.         fadeColor             0.000 0.000 0.000 0.000
  244.         offset                 0.000 0.000 0.000
  245.         gravity             world 0.000
  246.     }
  247.     {
  248.         count                1
  249.         material            textures/particles/boomboom
  250.         time                0.150
  251.         cycles                1.000
  252.         bunching            0.050
  253.         distribution        sphere 2.000 2.000 2.000 
  254.         direction            cone 0.000 
  255.         orientation            view 
  256.         speed                 "0.200"  to "0.000"
  257.         size                 "0.000"  to "35.000"
  258.         aspect                 "1.000" 
  259.         randomDistribution                1
  260.         boundsExpansion                0.000
  261.         fadeIn                0.050
  262.         fadeOut                0.450
  263.         fadeIndex                0.000
  264.         color                 0.200 0.880 1.000 1.000
  265.         fadeColor             0.000 0.000 0.000 0.000
  266.         offset                 0.000 0.000 0.000
  267.         gravity             world 0.000
  268.     }
  269.     {
  270.         count                1
  271.         material            textures/particles/boomboom
  272.         time                0.150
  273.         cycles                1.000
  274.         bunching            0.050
  275.         distribution        sphere 2.000 2.000 2.000 
  276.         direction            cone 0.000 
  277.         orientation            view 
  278.         speed                 "0.000" 
  279.         size                 "5.000"  to "40.000"
  280.         aspect                 "1.000" 
  281.         randomDistribution                1
  282.         boundsExpansion                0.000
  283.         fadeIn                0.050
  284.         fadeOut                0.700
  285.         fadeIndex                0.000
  286.         color                 0.010 0.870 1.000 1.000
  287.         fadeColor             0.000 0.000 0.000 0.000
  288.         offset                 0.000 0.000 0.000
  289.         gravity             world 0.000
  290.     }
  291.     {
  292.         count                1
  293.         material            textures/particles/boomboom2
  294.         time                0.150
  295.         cycles                1.000
  296.         bunching            0.050
  297.         distribution        sphere 7.000 7.000 7.000 
  298.         direction            cone 0.000 
  299.         orientation            view 
  300.         speed                 "0.000" 
  301.         size                 "0.000"  to "60.500"
  302.         aspect                 "1.000" 
  303.         randomDistribution                1
  304.         boundsExpansion                0.000
  305.         fadeIn                0.050
  306.         fadeOut                0.350
  307.         fadeIndex                0.000
  308.         color                 0.010 0.870 1.000 1.000
  309.         fadeColor             0.000 0.000 0.000 0.000
  310.         offset                 0.000 0.000 0.000
  311.         gravity             world 0.000
  312.     }
  313.     {
  314.         count                1
  315.         material            textures/particles/bfgballblast
  316.         time                0.250
  317.         cycles                1.000
  318.         bunching            0.050
  319.         distribution        sphere 7.000 7.000 7.000 
  320.         direction            cone 0.000 
  321.         orientation            z 
  322.         speed                 "0.000" 
  323.         size                 "0.000"  to "30.000"
  324.         aspect                 "1.000" 
  325.         randomDistribution                1
  326.         boundsExpansion                0.000
  327.         fadeIn                0.050
  328.         fadeOut                0.350
  329.         fadeIndex                0.000
  330.         color                 0.000 0.400 1.000 1.000
  331.         fadeColor             0.000 0.000 0.000 0.000
  332.         offset                 0.000 0.000 0.000
  333.         gravity             world 0.000
  334.     }
  335.     {
  336.         count                1
  337.         material            textures/particles/plasmablast
  338.         time                0.250
  339.         cycles                1.000
  340.         bunching            0.050
  341.         distribution        sphere 7.000 7.000 7.000 
  342.         direction            cone 0.000 
  343.         orientation            view 
  344.         speed                 "0.000" 
  345.         size                 "5.000"  to "35.000"
  346.         aspect                 "1.000" 
  347.         randomDistribution                1
  348.         boundsExpansion                0.000
  349.         fadeIn                0.050
  350.         fadeOut                0.350
  351.         fadeIndex                0.000
  352.         color                 0.000 0.400 1.000 1.000
  353.         fadeColor             0.000 0.000 0.000 0.000
  354.         offset                 0.000 0.000 0.000
  355.         gravity             world 0.000
  356.     }
  357. }